﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DistributionReport.aspx.cs" Inherits="PPAP.Web.Report.DistributionReport" %>

<%@ Register TagPrefix="cc1" Namespace="PPAP.WebControls" Assembly="PPAP.WebControls" %>
<%@ Register Assembly="System.Web.DataVisualization, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI.DataVisualization.Charting" TagPrefix="asp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    <font size='-1' color='gray'>Current position:Report>>Distribution</font>
        <table width="800px" style="border-color: #2A48CE; border: 1px; border-style: solid;
            border-color: Gray; border-spacing: 0px;">
            <tr style="height: 32px;">
                <td style="font-weight: bold;" bgcolor="#D7D7D7" colspan="6">
                    PPAR 
                    Distribution report
                </td>
            </tr>
            <tr>
            <td><span id="GridView1__ctl8_Label4">Q-engineer:</span></td><td>
                <asp:DropDownList ID="ddlUsers" runat="server">
                </asp:DropDownList>
                </td>
                <td>
                    Start date:
                </td>
                <td>
                    <asp:TextBox ID="txtStart" onclick="WdatePicker();" runat="server"></asp:TextBox>
                </td>
                <td>
                    End date:
                </td>
                <td>
                    <asp:TextBox ID="txtEnd" onclick="WdatePicker();" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="left" colspan="4">
                    &nbsp;
                </td>
                <td align="center">
                    &nbsp;
                </td>
                <td align="center">
                    <asp:Button ID="btnSubmit" CssClass="button" runat="server" Text="Search" OnClick="btnSubmit_Click" />
                </td>
            </tr>
        </table>
        <br />
        <asp:Chart ID="Chart1" runat="server" Height="450px" Width="1080px">
            <Series>
                <asp:Series Name="Series1" IsValueShownAsLabel="True" Label="#VAL"
                    LabelToolTip="#VALX" LegendText="#VALX" MarkerColor="Red" 
                    YValuesPerPoint="2" Legend="Legend1" Color="Blue" 
                    Font="Microsoft Sans Serif, 20world" LabelBorderDashStyle="NotSet" 
                    CustomProperties="PointWidth=0.5, LabelStyle=Top" IsXValueIndexed="True" 
                    LegendToolTip="#VALX">
                    <EmptyPointStyle IsValueShownAsLabel="True" LabelAngle="90" />
                    <SmartLabelStyle CalloutStyle="Box" />
                </asp:Series>
            </Series>
            <ChartAreas>
                <asp:ChartArea Name="ChartArea1">
                    <AxisX Crossing="Min" IsLabelAutoFit="False">
                        <MajorGrid Enabled="False" Interval="Auto" />
                        <MajorTickMark Enabled="False" Interval="Auto" />
                        <LabelStyle ForeColor="Blue" />
                    </AxisX>
                </asp:ChartArea>
            </ChartAreas>
            <Titles>
                <asp:Title Alignment="TopCenter" BackColor="231, 232, 232" Font="Microsoft Sans Serif, 12pt, style=Bold"
                    Name="InspectionReport" Text="Distribution report">
                </asp:Title>
            </Titles>
            <BorderSkin BorderDashStyle="Solid" SkinStyle="Emboss" />
        </asp:Chart>
        <br />
        <asp:DataGrid ID="dgList" HeaderStyle-BackColor="#E7E8E8" HeaderStyle-Font-Bold="true"
                    HeaderStyle-Height="32px"  OnLoad="dgLoad" AutoGenerateColumns="False"
                    runat="server">
                    <Columns>
                        <asp:BoundColumn DataField="s" HeaderText="No.">
                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="name" HeaderText="Name">
                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundColumn>
                        <asp:BoundColumn DataField="count" HeaderText="Count">
                            <ItemStyle HorizontalAlign="Left"></ItemStyle>
                        </asp:BoundColumn>
                    </Columns>
                </asp:DataGrid>
        <br />
    </div>
    </form>
</body>
</html>
